package com.xoms.admin.controller.springmvc.req;


import org.hibernate.validator.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

/**
 * 登录
 **/
public class LoginParam {
	@NotEmpty(message = "手机号不能为空！")
	@Pattern(regexp = "^(1[1-9])\\d{9}$", message = "手机号格式不正确！")
	private String phone; // 手机号码
	@Pattern(regexp = "^[a-zA-Z0-9]{5,17}$", message = "密码格式不正确")
	private String password; // 密码，大小写字母数字6-18

	public void setPhone(String phone) {
 		this.phone = phone;
	}

	public String getPhone() {
 		return phone;
	}

	public void setPassword(String password) {
 		this.password = password;
	}

	public String getPassword() {
 		return password;
	}

}
